home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / base / shortvrb.sty < prev    next >
Text File  |  1997-03-07  |  6KB  |  152 lines

  1. %%
  2. %% This is file `shortvrb.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% doc.dtx  (with options: `shortvrb')
  8. %% 
  9. %% This is a generated file.
  10. %% 
  11. %% Copyright 1993 1994 1995 1996 1997
  12. %% The LaTeX3 Project and any individual authors listed elsewhere
  13. %% in this file.
  14. %% 
  15. %% For further copyright information, and conditions for modification
  16. %% and distribution, see the file legal.txt, and any other copyright
  17. %% notices in this file.
  18. %% 
  19. %% This file is part of the LaTeX2e system.
  20. %% ----------------------------------------
  21. %%   This system is distributed in the hope that it will be useful,
  22. %%   but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. %%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24. %% 
  25. %%   For error reports concerning UNCHANGED versions of this file no
  26. %%   more than one year old, see bugs.txt.
  27. %% 
  28. %%   Please do not request updates from us directly.  Primary
  29. %%   distribution is through the CTAN archives.
  30. %% 
  31. %% 
  32. %% IMPORTANT COPYRIGHT NOTICE:
  33. %% 
  34. %% You are NOT ALLOWED to distribute this file alone.
  35. %% 
  36. %% You are allowed to distribute this file under the condition that it
  37. %% is distributed together with all the files listed in manifest.txt.
  38. %% 
  39. %% If you receive only some of these files from someone, complain!
  40. %% 
  41. %% 
  42. %% Permission is granted to copy this file to another file with a
  43. %% clearly different name and to customize the declarations in that
  44. %% copy to serve the needs of your installation, provided that you
  45. %% comply with the conditions in the file legal.txt.
  46. %% 
  47. %% However, NO PERMISSION is granted to generate or to distribute a
  48. %% modified version of this file under its original name.
  49. %% 
  50. %% You are NOT ALLOWED to change this file.
  51. %% 
  52. %% 
  53. %% MODIFICATION ADVICE:
  54. %% 
  55. %% If you want to customize this file, it is best to make a copy of
  56. %% the source file(s) from which it was produced.  Use a different
  57. %% name for your copy(ies) and modify the copy(ies); this will ensure
  58. %% that your modifications do not get overwritten when you install a
  59. %% new release of the standard system.  You should also ensure that
  60. %% your modified source file does not generate any modified file with
  61. %% the same name as a standard file.
  62. %% 
  63. %% You can then easily distribute your modifications by distributing
  64. %% the modified and renamed copy of the source file, taking care to
  65. %% observe the conditions in legal.txt; this will ensure that other
  66. %% users can safely use your modifications.
  67. %% 
  68. %% You will also need to produce your own, suitably named, .ins file to
  69. %% control the generation of files from your source file; this file
  70. %% should contain your own preambles for the files it generates, not
  71. %% those in the standard .ins files.
  72. %% 
  73. %% The names of the source files used are shown above.
  74. %% 
  75. %% 
  76. %% 
  77. \NeedsTeXFormat{LaTeX2e}[1994/12/01]
  78. \ProvidesPackage{shortvrb}
  79.   [1997/02/05 v1.9z
  80.    Standard LaTeX documentation package (FMi)]
  81. %% \CharacterTable
  82. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  83. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  84. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  85. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  86. %%   Dollar        \$     Percent       \%     Ampersand     \&
  87. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  88. %%   Asterisk      \*     Plus          \+     Comma         \,
  89. %%   Minus         \-     Point         \.     Solidus       \/
  90. %%   Colon         \:     Semicolon     \;     Less than     \<
  91. %%   Equals        \=     Greater than  \>     Question mark \?
  92. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  93. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  94. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  95. %%   Right brace   \}     Tilde         \~}
  96. %%
  97. %% Package `doc' to use with LaTeX 2e
  98. %% Copyright (C) 1989-1997 Frank Mittelbach, all rights reserved.
  99. \def\MakeShortVerb#1{%
  100.   \expandafter\ifx\csname cc\string#1\endcsname\relax
  101.     \@shortvrbinfo{Made }{#1}%
  102.     \add@special{#1}%
  103.     \expandafter
  104.     \xdef\csname cc\string#1\endcsname{\the\catcode`#1}%
  105.     \begingroup
  106.       \catcode`\~\active  \lccode`\~`#1%
  107.       \lowercase{%
  108.       \global\expandafter\let
  109.          \csname ac\string#1\endcsname~%
  110.       \gdef~{\verb~}}%
  111.     \endgroup
  112.     \global\catcode`#1\active
  113.   \else
  114.     \@shortvrbinfo\@empty{#1 already}%
  115.   \fi}
  116. \def\DeleteShortVerb#1{%
  117.   \expandafter\ifx\csname cc\string#1\endcsname\relax
  118.   \else
  119.     \@shortvrbinfo{Deleted }{#1 as}%
  120.     \rem@special{#1}%
  121.     \global\catcode`#1\csname cc\string#1\endcsname
  122.     \global \expandafter\let \csname cc\string#1\endcsname \relax
  123.     \ifnum\catcode`#1=\active
  124.       \begingroup
  125.         \catcode`\~\active   \lccode`\~`#1%
  126.         \lowercase{%
  127.           \global\expandafter\let\expandafter~%
  128.           \csname ac\string#1\endcsname}%
  129.       \endgroup \fi \fi}
  130. \def\@shortvrbinfo#1#2{%
  131.   \PackageInfo{shortvrb}{%
  132.      #1\expandafter\@gobble\string#2 a short reference
  133.                                           for \string\verb}}
  134. \def\add@special#1{%
  135.   \rem@special{#1}%
  136.   \expandafter\gdef\expandafter\dospecials\expandafter
  137.     {\dospecials \do #1}%
  138.   \expandafter\gdef\expandafter\@sanitize\expandafter
  139.     {\@sanitize \@makeother #1}}
  140. \def\rem@special#1{%
  141.   \def\do##1{%
  142.     \ifnum`#1=`##1 \else \noexpand\do\noexpand##1\fi}%
  143.   \xdef\dospecials{\dospecials}%
  144.   \begingroup
  145.     \def\@makeother##1{%
  146.       \ifnum`#1=`##1 \else \noexpand\@makeother\noexpand##1\fi}%
  147.     \xdef\@sanitize{\@sanitize}%
  148.   \endgroup}
  149. \endinput
  150. %%
  151. %% End of file `shortvrb.sty'.
  152.